using Paradogs2.api;
using Paradogs2;
using pd2_server_sdk.server;
using ProtoBuf;
using UnityEngine;

public class Pd2SdkTestComponent : MonoBehaviour
{

    public string account = "yumi";

    void Start()
    {
        Debug.Log(Serializer.GetProto<OwnerSyncData>());
        login();
        OwnerSyncData owner = PD2SdkContext.owner;

    }

    async void login()
    {
        // 客户端一键登录
        await ServerMgr.fastLogin(account, "123456");
        // 发送消息 - 购买商品
        await NetMgr.ShopHandler.buy(1001, 1);
    }

}
